package ChaiPiao;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        Game game = new Game("A", false);
        game.addSelection(new GameSelection("SPF", "DRAW"));

        Game game1 = new Game("B", false);
        game1.addSelection(new GameSelection("SPF", "LOST"));

        Game game2 = new Game("C", false);
        game2.addSelection(new GameSelection("RQSPF", "WIN"));

        Game game3 = new Game("D", false);
        game3.addSelection(new GameSelection("RQSPF", "DRAW"));

        Game game4 = new Game("E", false);
        game4.addSelection(new GameSelection("SPF", "WIN"));

        GameTicketSplitter gameTicketSplitter = new GameTicketSplitter();
        gameTicketSplitter.add(game);
        gameTicketSplitter.add(game1);
        gameTicketSplitter.add(game2);
        gameTicketSplitter.add(game3);
        gameTicketSplitter.add(game4);
        MixTypeProvider mixTypeProvider = new MixTypeProvider();
        mixTypeProvider.setMixType("M_3_3");
        List<Ticket> ticketsList = gameTicketSplitter.splitTicket(mixTypeProvider.getMixBase(), mixTypeProvider.getMix_1());
        for (Ticket ticket : ticketsList) {
            System.out.println(ticket);
        }


        List<Note> notes = gameTicketSplitter.splitNote(mixTypeProvider.getMixBase(), mixTypeProvider.getMix_1());
        System.out.println(notes.size());
        for (Note note : notes) {
            System.out.println(note);
        }
    }
}
